import request from '@/utils/request'
const baseUrl = process.env.VUE_APP_TMS_IAM_HOST

// 获取消息列表
export function systemList(data) {
  return request({
    // url: 'http://127.0.0.1:4523/mock2/656228/13193627',
    url: `${baseUrl}/api/v1/sys-notification/search`,
    method: 'post',
    data: data
  })
}
// 获取左上角列表
export function systemListLeft(data) {
  return request({
    url: `${baseUrl}/api/v1/sys-notification/self/search`,
    method: 'post',
    data: data
  })
}
// 全部已读
export function allRead(data) {
  return request({
    // url: 'http://127.0.0.1:4523/mock2/656228/13193178',
    url: `${baseUrl}/api/v1/sys-notification/mark-read`,
    method: 'post',
    data: data
  })
}
// 查看详情
export function informationDetails(data) {
  return request({
    // url: 'http://127.0.0.1:4523/mock2/656228/13194627',
    url: `${baseUrl}/api/v1/sys-notification ${data.id}`,
    method: 'post',
    data: data
  })
}
